<template>
  <div class="box">
    <van-empty
      image="network"
      description="对不起,你访问的页面已被删除或不存在."
    />
    <van-button @click="toHome"  plain type="primary"
      >去首页</van-button
    >
  </div>
</template>

<script>
// 引入路由
import { useRouter } from "vue-router";
export default {
  setup() {
    let router = useRouter();
    let toHome = () => router.push("/home");
    return { toHome };
  },
};
</script>

<style scoped>
.box {
  text-align: center;
}
</style>